import api from '@/http/index'

/* 列表 */
export const getTablesList = (data) => {
    return new Promise((resolve, reject) => {
        api.get('/api/Module/GetTreeGridJson', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};

/* 按钮列表 根据模块来查询 */
export const getButtonList = (data) => {
    return new Promise((resolve, reject) => {
        api.get('/api/ModuleButton/GetGridJson', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};
